
package com.seekting.study;

import javax.swing.JButton;
import javax.swing.JFrame;

public class JButtonTest {

    public static void main(String[] args) {
        final JFrame jFrame = new JFrame();
        jFrame.setBounds(0, 0, 100, 100);
        jFrame.setVisible(true);
        new Thread(new Runnable() {

            @Override
            public void run() {
                JButton jButton = new JButton();
                jButton.setText("xxx");
                jFrame.add(jButton);
            }
        }).start();

    }
}
